package fei.yuzhi.com.loveflowers.fragment.mefragment.login.register;

import android.content.Context;
import android.util.Log;

/**
 * Created by Administrator on 2016/10/7.
 */
public class RegisterPresenter implements RegisterContract.PresenterRegister{
    private RegisterContract.ModelRegister model;
    private RegisterContract.ViewRegister view;

    public RegisterPresenter( RegisterContract.ViewRegister view) {
        this.model=new RegisterModel();
        this.view=view;
    }

    @Override
    public void sendYanZhengMa(Context context,String tell) {
        model.sendYanZhengMa(context,tell, new RegisterModel.sendSituation() {
            @Override
            public void setSituation(String msg) {
                view.sendSituation(msg);
            }
        });
    }

    @Override
    public void userRegister(Context context,String name,String pass,String tell) {
        model.userRegister(context,name, pass, tell, new RegisterModel.sendRegister() {
            @Override
            public void setRegister(String msg) {
                view.onVerticalSucess(msg);
            }
        });

    }


}
